import 'package:flutter/material.dart';
import 'package:flutter_base_widget/list/notifier/model_slider1.dart';
import 'package:flutter_base_widget/list/notifier/model_slider2.dart';
import 'package:flutter_base_widget/list/notifier/my_schedule.dart';
import 'package:provider/provider.dart';

class NotifierPage extends StatefulWidget {
  @override
  _NotifierPageState createState() => _NotifierPageState();

  
}

class _NotifierPageState extends State<NotifierPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Flare动画"),
        leading: IconButton(
          icon: Icon(Icons.arrow_back),
          onPressed: (){
            Navigator.of(context).pop();
          },
        ),
      ),
      body: ChangeNotifierProvider(
        create: (contenxt) => MySchedule(),
        child: Column(
          children: <Widget>[
            NotifierSlider1(),
            NotifierSlider2()
          ],
        ),
      ),
    );
  }
}